package com.mdd.admin.validate.system;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mdd.admin.validate.BaseParam;
import com.mdd.common.validator.annotation.IDMust;
import com.mdd.common.validator.annotation.IntegerContains;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 发放优惠券优惠券参数
 * @author panweiliang
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class CouponProvideParam extends BaseParam {

    @NotNull(message = "用户不能为空", groups = {create.class, update.class})
    private Integer userId;

    @NotNull(message = "请选择优惠券", groups = {create.class, update.class})
    @NotEmpty(message = "请选择优惠券", groups = {create.class, update.class})
    private List<Integer> couponIds;

}
